package cn.lj.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    //每页展示条数
    private Integer pageSize = 1;
    //当前页
    private Integer currentPage = 10;
    //迷糊查询
    private String keyword;
    /*一个活动当前条数的方法*/
    private Integer getBeginIndex(){
        return (currentPage-1) * pageSize;
    }
}
